package com.feige.utils.enums;

import com.feige.utils.constant.Constants;

/**
 * @description:
 * @author: feige
 * @date: 2021/6/1 16:55
 */
public enum ResultEnumCode {
    /**
     * 成功
     */
    success(Constants.SUCCESS_CODE, Constants.SUCCESS_MSG),
    /**
     * 失败
     */
    error(Constants.ERROR_CODE, Constants.ERROR_MSG);
    private int code;
    private String msg;
    ResultEnumCode(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
